package com.clqteam.serviceimpl;

import com.clqteam.dao.insertZsDao;
import com.clqteam.daoimpl.insertZsDaoImpl;
import com.clqteam.model.Product;
import com.clqteam.service.insertZsService;

public class insertZsServiceImpl implements insertZsService{
	
	insertZsDao ins = new insertZsDaoImpl(); 

	@Override
	public int insertZsByAllInfo(int zspId, String zspName, int zspAmount, double zspCost, String zspTime,
			String zspPeople, String zsReason) {
		
		return ins.insertZsByAllInfo(zspId, zspName, zspAmount, zspCost, zspTime, zspPeople, zsReason);
	}

	@Override
	public int updateShByZs(int zspId, int zspAmount) {
		
		return ins.updateShByZs(zspId, zspAmount);
	}

	@Override
	public void setdirInfo(String drInfo, String drTime, int eId, String eName) {
		ins.setdirInfo(drInfo, drTime, eId, eName);
		
	}

	@Override
	public Product getProductInfoByPid(int pid) {
		return ins.getProductInfoByPid(pid);
	}

	@Override
	public int getOidByPid(int zspId) {
		return ins.getOidByPid(zspId);
	}

	@Override
	public void updataOrder(int oId, double oMoney) {
		ins.updataOrder(oId, oMoney);
		
	}

	@Override
	public void updataOrderInfo(int oId, int pAmount) {
		ins.updataOrderInfo(oId, pAmount);
		
	}
	

}
